/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dialog;

import main.Demo;
import dto.Application;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JDialog;

/**
 *
 * @author phat10130059
 */
public class CreateAcountDialog extends JDialog {

  
    private CreatAccount creatAccount;
    
    public CreateAcountDialog(Demo demo) {

        setTitle(demo.TitleCreateAccount);
        
        creatAccount = new CreatAccount(this, demo);
        
        add(creatAccount);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        setModalityType(ModalityType.APPLICATION_MODAL);
        setResizable(false);
        setSize(400, 350);
        
        setLocationRelativeTo(null);
        
        this.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosing(WindowEvent e) {
                
            }
            
        });
    }
}
